#include "buffers.h"

Buffers::Buffers(int size, int amount, QObject *parent) :
        QObject(parent)
{
    data_ = NULL;
    if (amount > 0){
        data_ = new (Gl::SampleEncoding *)[amount];
        for(int i = 0; i<amount; ++i){
            if (size>0)
                data_[i] = new Gl::SampleEncoding [size];
            else
                data_[i] = NULL;

        }
    }
}

Buffers::~Buffers(){
    if (amount > 0){
        for(int i = 0; i<amount; ++i){
            if (size>0) delete [] data_[i];
        delete [] data_;
        }
    }
}

void Buffers::changeSize();
